package com.eshop.logging.service.dto;

import java.sql.Timestamp;
import java.util.List;
import com.eshop.annotation.Query;

public class LogQueryCriteria
{
    @Query(blurry = "username,description,address,requestIp,method,params")
    private String blurry;
    @Query
    private String logType;
    @Query(type = Query.Type.BETWEEN)
    private List<Timestamp> createTime;
    @Query
    private Integer type;
    
    public String getBlurry() {
        return this.blurry;
    }
    
    public String getLogType() {
        return this.logType;
    }
    
    public List<Timestamp> getCreateTime() {
        return this.createTime;
    }
    
    public Integer getType() {
        return this.type;
    }
    
    public void setBlurry(final String blurry) {
        this.blurry = blurry;
    }
    
    public void setLogType(final String logType) {
        this.logType = logType;
    }
    
    public void setCreateTime(final List<Timestamp> createTime) {
        this.createTime = createTime;
    }
    
    public void setType(final Integer type) {
        this.type = type;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof LogQueryCriteria)) {
            return false;
        }
        final LogQueryCriteria other = (LogQueryCriteria)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$type = this.getType();
        final Object other$type = other.getType();
        Label_0065: {
            if (this$type == null) {
                if (other$type == null) {
                    break Label_0065;
                }
            }
            else if (this$type.equals(other$type)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$blurry = this.getBlurry();
        final Object other$blurry = other.getBlurry();
        Label_0102: {
            if (this$blurry == null) {
                if (other$blurry == null) {
                    break Label_0102;
                }
            }
            else if (this$blurry.equals(other$blurry)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$logType = this.getLogType();
        final Object other$logType = other.getLogType();
        Label_0139: {
            if (this$logType == null) {
                if (other$logType == null) {
                    break Label_0139;
                }
            }
            else if (this$logType.equals(other$logType)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$createTime = this.getCreateTime();
        final Object other$createTime = other.getCreateTime();
        if (this$createTime == null) {
            if (other$createTime == null) {
                return true;
            }
        }
        else if (this$createTime.equals(other$createTime)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof LogQueryCriteria;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $type = this.getType();
        result = result * 59 + (($type == null) ? 43 : $type.hashCode());
        final Object $blurry = this.getBlurry();
        result = result * 59 + (($blurry == null) ? 43 : $blurry.hashCode());
        final Object $logType = this.getLogType();
        result = result * 59 + (($logType == null) ? 43 : $logType.hashCode());
        final Object $createTime = this.getCreateTime();
        result = result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "LogQueryCriteria(blurry=" + this.getBlurry() + ", logType=" + this.getLogType() + ", createTime=" + this.getCreateTime() + ", type=" + this.getType() + ")";
    }
}
